package com.rightsidetech.mall.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * mall_commodity_log
 * @author
 */
public class MallCommodityLog implements Serializable {
    /**
     * id
     */
    private Long id;

    /**
     * 操作人id
     */
    private Long loginInfoId;

    /**
     * 商品名称
     */
    private String commodityName;

    /**
     * 操作人名称
     */
    private String loginName;

    /**
     * 所属商城
     */
    private String commodityMarketName;

    /**
     * 操作类型
     */
    private String operateType;

    /**
     * 请求路径
     */
    private String url;

    /**
     * 操作详情
     */
    private String details;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 接口请求参数
     */
    private String requestParam;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getLoginInfoId() {
        return loginInfoId;
    }

    public void setLoginInfoId(Long loginInfoId) {
        this.loginInfoId = loginInfoId;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getCommodityMarketName() {
        return commodityMarketName;
    }

    public void setCommodityMarketName(String commodityMarketName) {
        this.commodityMarketName = commodityMarketName;
    }

    public String getOperateType() {
        return operateType;
    }

    public void setOperateType(String operateType) {
        this.operateType = operateType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public String getRequestParam() {
        return requestParam;
    }

    public void setRequestParam(String requestParam) {
        this.requestParam = requestParam;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MallCommodityLog other = (MallCommodityLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getLoginInfoId() == null ? other.getLoginInfoId() == null : this.getLoginInfoId().equals(other.getLoginInfoId()))
                && (this.getCommodityName() == null ? other.getCommodityName() == null : this.getCommodityName().equals(other.getCommodityName()))
                && (this.getLoginName() == null ? other.getLoginName() == null : this.getLoginName().equals(other.getLoginName()))
                && (this.getCommodityMarketName() == null ? other.getCommodityMarketName() == null : this.getCommodityMarketName().equals(other.getCommodityMarketName()))
                && (this.getOperateType() == null ? other.getOperateType() == null : this.getOperateType().equals(other.getOperateType()))
                && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
                && (this.getDetails() == null ? other.getDetails() == null : this.getDetails().equals(other.getDetails()))
                && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
                && (this.getRequestParam() == null ? other.getRequestParam() == null : this.getRequestParam().equals(other.getRequestParam()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getLoginInfoId() == null) ? 0 : getLoginInfoId().hashCode());
        result = prime * result + ((getCommodityName() == null) ? 0 : getCommodityName().hashCode());
        result = prime * result + ((getLoginName() == null) ? 0 : getLoginName().hashCode());
        result = prime * result + ((getCommodityMarketName() == null) ? 0 : getCommodityMarketName().hashCode());
        result = prime * result + ((getOperateType() == null) ? 0 : getOperateType().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        result = prime * result + ((getDetails() == null) ? 0 : getDetails().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        result = prime * result + ((getRequestParam() == null) ? 0 : getRequestParam().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", loginInfoId=").append(loginInfoId);
        sb.append(", commodityName=").append(commodityName);
        sb.append(", loginName=").append(loginName);
        sb.append(", commodityMarketName=").append(commodityMarketName);
        sb.append(", operateType=").append(operateType);
        sb.append(", url=").append(url);
        sb.append(", details=").append(details);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", requestParam=").append(requestParam);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}